package demo9;

public class test {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        int cpuNumbers = runtime.availableProcessors();
        System.out.println("电脑的这个cpu的核数是："+cpuNumbers);
    }
}
